
export const formData = {
    getItemUrl: 'merchant/activity/getItemById/',
    updateUrl: 'merchant/activity/updateAction/',
    createUrl: 'merchant/activity/createAction/',
    formKey: 'activity',
    updateFieldList: [
        { formType: 'Input', showName: '名称', key: 'name', width: 6, required: true },
        { formType: 'Input', showName: '标识', key: 'key', width: 6, roles: ['admin']},
        { formType: 'Textarea', showName: '活动介绍', key: 'activityIntr', width: 10 },
        { formType: 'JsonStr', showName: '活动参数', key: 'activityParams', width: 10, rows: 8 },
        { formType: 'Textarea', showName: '备注', key: 'remark', width: 10, rows: 8 },
    ],
    detailFieldList: [
        { formType: 'Input', showName: '名称', key: 'name', width: 6 },
        { formType: 'Input', showName: '标识', key: 'key', width: 6 },
        { formType: 'Textarea', showName: '活动介绍', key: 'activityIntr', width: 10 },
        { formType: 'Textarea', showName: '活动参数', key: 'activityParamsObj', width: 10 },
        { formType: 'Textarea', showName: '备注', key: 'remark', width: 10, rows: 8 },
    ],
    options: {
        status: [
            {value: '1', label: "正常"},
            {value: '2', label: "异常"}
        ],
        isShow: [
            {value: 1, label: "是"},
            {value: 0, label: "否"}
        ]
    },
    dicts: {
        status: {
            '1': "正常",
            '2': "异常"
        }
    }
}
